/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.crm.workorder.remote.RemoteWorkOrderService
   Module Description   :

   Date Created      : 2011/3/8
   Original Author   : cut7man
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.crm.workorder.remote;

import javax.jws.WebMethod;
import javax.jws.WebService;

/**
 * @author cut7man
 * 
 */
@WebService(serviceName = "remoteWorkOrderService")
public interface RemoteWorkOrderService {
	@WebMethod
	public String forwardOrderForOutOfStockInternal(String orderId, String productIds, String reason, String comment,
			String creater);

	@WebMethod
	public String closeWorkOrderForOutOfStockOfDay(String day);

	/**
	 * 检查订单是否有退换货
	 * 
	 * @param orderIds ex:'1103084324383'
	 * @return true or error msg
	 */
	@WebMethod
	public String chkServiceOrderByOrderId(String orderId);

	/**
	 * 更新订单状态为已发货
	 * 
	 * @param orderIds ex:'1103084324383'
	 * @return true or error msg
	 */
	@WebMethod
	public String updOrderStatusTo30ByOrderId(String orderId);

	/**
	 * 检查是否已有SR单存在
	 * 
	 * @param serviceId
	 * @return true or error msg
	 */
	@WebMethod
	public String chkServiceOrderByServiceId(String serviceId);

	/**
	 * 更新Service单状态为已发货
	 * 
	 * @param serviceId
	 * @return true or error msg
	 */
	@WebMethod
	public String updServiceOrderStatusTo20ByServiceId(String serviceId);

	@WebMethod
	public RemoteWorkOrder[] queryWorkOrder(String responseGroup, String ownerUsername, String memberId, String orderId,
			String workOrderId, String questionId, int start, int max);

	@WebMethod
	public RemoteWorkOrderDetail[] queryWorkOrderForExport(String responseGroup, String status);

	@WebMethod
	public RemoteWorkOrder getWorkOrder(String workOrderId, String username);

	@WebMethod
	public RemoteWorkOrder viewWorkOrder(String workOrderId);

	@WebMethod
	public RemoteWorkOrder closeOrder(String workOrderId, String comment);

	@WebMethod
	public Long countWorkOrder(String responseGroup, String ownerUsername, String memberId, String orderId,
			String workOrderId, String questionId);

	@WebMethod
	public String cancelServiceOrderByERP(String serviceId);

	@WebMethod
	public String createFailDeliverWorkOrder(String orderId, String soId, String woCreater, String woContent);

	@WebMethod
	public String commentToWorkorder(int rows);
}
